package com.example.zyfypt516wh.service;

import com.example.zyfypt516wh.bean.UserBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface UserService {
    @GET("api.php/login")
    Call<UserBean> login(@Query("username") String username,
                         @Query("password") String password);

    @GET("api.php/reg/username/{username}/password/{password}/tel/{tel}")
    Call<String> register(
            @Path("username") String username,
            @Path("password") String password,
            @Path("tel") String tel);



    //注销登录
    @GET("api.php/logout")
//    Call<Object> logout(@Header("SessionID") String sessionID);
    Call<String> logout(@Header("SessionID") String sessionID);

}
